package com.sky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    //插入数据

    void insert1(User user);
@Select("SELECT * FROM user WHERE id = #{userId}")
    User getById(Long userId);
}
